package com.chunuo.eduservice.openfeign;

import com.chunuo.commonutils.R;
import com.chunuo.eduservice.openfeign.impl.EduVideoOpenFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 类的作用
 *
 * @author liujiamiao
 * @email 2544296058@qq.com
 * @date 2020-07-16 21:15
 */
@Component
@FeignClient(value = "service-vod",fallback = EduVideoOpenFeignImpl.class)
public interface EduVideoOpenFeign {

    @DeleteMapping("/eduvideo/video/removeAlyVideo/{id}")
    public R removeAlyVideo(@PathVariable("id")String id);

    @DeleteMapping("/eduvideo/video/removeCourseVideo/{ids}")
    public R removeCourseVideo(@PathVariable("ids")String ids);

}
